<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>爱尔向日葵</title>
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="js/list.js"></script>
<link rel="stylesheet" type="text/css" href="css/reveal.css">
<script language="javascript" src="js/jquery-1.7.1.min.js"></script>
<script language="javascript" src="js/jquery.reveal.js"></script>
<style>
body{
	position:relative;
	}
.center{
	width:574px;
	font-family:"微软雅黑";
	}
.center .title{
	line-height:32px;
	font-size:16px;
	color:#333;
	text-align:center;
	}
li{
	list-style:none;
	}
.center ul{
	padding-bottom:30px;
	}
.center ul li{
	float:left;
	padding-left:27px;
	width:151px;
	height:33px;
	background:#f9f9f9;
	border-bottom:1px solid #fff;
	line-height:33px;
	font-size:14px;
	color:#333;
	}
.center ul li input{
	margin:0;
	margin-right:10px;
	margin-top:6px;
	}
.center .dc-btn{
	width:114px;
	height:39px;
	border:1px solid #c50e1b;
	background:url(images/tc_03.jpg) 27px center no-repeat;
	padding-left:56px;
	text-align:left;
	color:#c50e1b;
	margin:0 229px;
	cursor:pointer;
	}
.center .dc-btn:hover{
	background:#c50e1b url(images/tc_02.jpg) 27px center no-repeat;
	color:#fff;
	}
.close{
	width:15px;
	height:15px;
	position:absolute;
	right:16px;
	top:17px;
	}
.export{
	float:right;
	margin-right:0px;
	padding:5px;
	margin-left:7px; margin-top:5px; margin-bottom:5px;
	background:#d7000f; color:#fff!important;
	}
.export a{ color:#fff;}
</style>
</head>
<body leftmargin="8" topmargin="8"  onLoad="ContextMenu.intializeContextMenu()">
<!--  搜索表单  -->
<form name='form3' action='content_list_xiangrikui.php' method='get'>
<input type='hidden' name='dopost' value='listArchives' />
<table width='100%'  border='0' cellpadding='1' cellspacing='1'  align="center" style="margin-top:8px">
<tr><td>
<div style="height:42px; line-height:42px; border-bottom:1px solid #CCCCCC; font-family:'微软雅黑'; color:#333; font-size:14px;">当前位置：<a href="index_body1.php" target="main" style="height:42px; line-height:42px;  color:#333; font-family:'微软雅黑'; font-size:14px;">项目管理</a>  > 爱尔向日葵计划 ></div>
</td>
</tr>
  <tr bgcolor='#f9f9f9'>
    <td  align='center'>
      <table border='0' cellpadding='0' cellspacing='0' height="32">
        <tr>    <td width='160' style="display:none">
          <select name='cid' style='width:150px'>
          <option value='0'>选择栏目...</option>
          	<?php echo $GLOBALS['optionarr']; ?>
          </select>
        </td >
        <td nowrap>
          关键字：
        </td>
        <td width='130'>
          	<input type='text' name='keyword' value='<?php echo $GLOBALS['keyword']; ?>' style='width:120px' />
        </td>
        <td width='90'>
    		<select name='orderby' style='width:80px'>
            <option value='id'>排序...</option>
            <option value='title'>姓名</option>
            <option value='nianling'>年龄</option>
            <option value='quyu'>省市区域</option>
            <option value='shenqingshijian'>申请时间</option>			
            <option value='zizhuleixing'>资助类型</option>
            <option value='zhuangtai'>资助状态</option>
            <option value='zizhujineaier'>资助金额</option>
			<option value="ismake">是否审批</option>
            <option value='pubdate'>更新时间</option>
            <option value='mid'>发布人</option>
       	</select>
      </td>
	  	  	       <td width='90'>
    		<select name='zhuangtai' style='width:80px'>
		   <option value=''>状态...</option>
 		 <?php 
		$addQuery = "SELECT fieldset FROM aier_channeltype   WHERE id=25";
    $addRow = $dsql->GetOne($addQuery);
	$fieldset = $addRow['fieldset']; 
	$f1 = strstr($fieldset, '状态');
	$f2 = strstr($f1, 'default');
	$f3 = mb_substr($f2,0,200,'utf-8');
	 preg_match("/default=['\"](.*)['\"]/U",$f3,$out);
     $r1=$out[1];
	 $hello = explode(',',$r1); 
  for($index=0;$index<count($hello);$index++){ 
echo "<option value='$hello[$index]'>";
echo $hello[$index];
echo "</option>"; 
} 
	?> 
       	</select>
      </td>
      <td width='90'>
    		<select name='flag' style='width:80px'>
            <option value=''>属性...</option>
            <?php echo $GLOBALS['flagsArr']; ?>
      	</select>
      </td>
       <td>
          <input name="imageField" type="submit" width="60" value="搜索" height="22" border="0" class="np ss-btn" />
       </td>
      </tr></form>
     </table>
   </td>
  </tr>
   <tr align="right">
  <td><table width="100%" border="0" cellpadding="0" cellspacing="1"  align="center">
<tr>
 <td height="26" >
  <table width="260" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td align="center">
  <a style="background-color:#d7000f; float:left; width:68px; margin-right:8px; cursor:pointer; vertical-align:middle; border:none; height:27px; line-height:27px; text-align:center; color:#fff;"  onClick="location='catalog_do.php?channelid=<?php echo $GLOBALS['channelid']; ?>&cid=<?php echo $GLOBALS['cid']; ?>&dopost=addArchives';" value='' />添加数据</a>
  <?php if($adminid==$mid){ ?>
  <a style="background-color:#d7000f; float:left; width:68px;  margin-right:8px;cursor:pointer; vertical-align:middle; border:none; height:27px; line-height:27px; text-align:center; color:#fff;"  onClick="location='content_list.php?cid=<?php echo $GLOBALS['cid']; ?>&mid=0';" value='' />全部数据</td>
	<?php
}
else{
?>
  <a style="background-color:#d7000f; float:left; width:68px; cursor:pointer; vertical-align:middle; border:none; height:27px; line-height:27px; text-align:center; color:#fff;"  onClick="location='content_list.php?cid=<?php echo $GLOBALS['cid']; ?>&mid=<?php echo $cuserLogin->getUserID(); ?>';" value='' />我的数据</a>
	<?php } ?>
  </td>
 </tr>
</table></td><td style="margin-left:20px;">
   <a href="#" data-reveal-id="myModal" data-animation="none" class="export">导出excel</a>
   <a href="#" data-reveal-id="myModal2" data-animation="none" class="export">导入excel</a></td></tr>
</table>
<!--  内容列表   -->
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#f9f9f9" align="center">
<tr align="center" bgcolor="#f9f9f9" height="25">
	<td width="5%">申请编号</td>
	<td width="4%">选择</td>
	<td width="6%">姓名</td>
	<td width="6%">受助年龄</td>
	<td width="10%">省市区域</td>
	<td width="8%">申请时间</td>
	<td width="8%">资助类型</td>
	<td width="5%">资助状态</td>
	<td width="9%">资助金额(万)</td>
	<td width="6%">是否审批</td>
	<td width="7%">更新时间</td>
	<td width="10%">发布人</td>
	<td width="6%">操作</td>
</tr><form name="form2">
<?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields); 
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{
?>
<tr align='center' bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
	<td nowrap>
		B<?php $a = $fields['id']-1553; echo date('Y')."-".$a; ?>
	</td>
	<td>
		<input name="arcID" type="checkbox" id="arcID" value="<?php echo $fields['id']; ?>" class="np" />
	</td>
	<td align='left'>
		<span id="arc<?php echo $fields['id']; ?>">
			<a href='archives_do.php?aid=<?php echo $fields['id']; ?>&dopost=editArchives'
				 oncontextmenu="ShowMenu(event,this,<?php echo $fields['id']; ?>,'<?php echo str_replace('\'', '', $fields['title']); ?>')">
				<u><?php echo $fields['title']; ?></u>
			</a>
		</span>
		<?php echo IsCommendArchives($fields['flag']); ?>
	</td>
	<td><?php echo $fields['nianling']; ?></td>
	<td><?php echo cn_substr($fields['hujizhuzhi'],14); ?></td>
	<td><?php echo GetDateMk($fields['shenqingshijian']); ?></td>
	<td class="sn_ac"><?php echo $fields['zizhuleixing']; ?></td>
	<td><?php echo $fields['zhuangtai']; ?></td>
	<td><?php echo $fields['zizhujine']; ?></td>
	<td><?php echo IsHtmlArchives($fields['ismake']); ?></td>
	<td><?php echo GetDateMk($fields['pubdate']); ?></td>
	<td><?php echo GetMemberName($fields['mid']); ?></td>
	<td>
 		<img src='images/gtk-edit.png' title="编辑" alt="编辑" onClick="editArc(<?php echo $fields['id']; ?>);" style='cursor:pointer' border='0' width='16' height='16' />
		<img src='images/part-list.gif' title="预览" alt="预览" onClick="viewArc(<?php echo $fields['id']; ?>);" style='cursor:pointer' border='0' width='16' height='16' />
	</td>
</tr>
<?php
}
}?>
<tr bgcolor="#ffffff">
<td height="36" colspan="13">
	&nbsp;
	<a href="javascript:selAll()" class="coolbg">全选</a>
	<a href="javascript:noSelAll()" class="coolbg">取消</a>
	<a href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
	<a href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
	<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
	<?php if($channelid==1) echo "	<a href=\"javascript:kwArc(0)\" class=\"coolbg\">&nbsp;自动关键字&nbsp;</a>\r\n"; ?>
	<a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="coolbg">&nbsp;增加属性&nbsp;</a>
	<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="coolbg">&nbsp;删除属性&nbsp;</a>
</td>
</tr>
</form><tr align="right" bgcolor="#ffffff">
	<td height="36" colspan="14" align="right">
		<script type="text/javascript">
	 function upfileSubmit(){ 
	var oInput = document.getElementById('import');
    if(oInput.value == '') {
        alert('请选择您需要上传的文件！'); 
		return false;
    } else{ 
document.upfile.submit(); 
} 
}
</script>
</td></tr>
<tr align="right" bgcolor="#f9f9f9">
	<td height="36" colspan="13" align="center" class="ym-right">
		<?php
$atts = array();
$atts['tagname'] = 'pagelist';
$atts['listsize'] = '3';
 echo $this->refObj->GetPageList($atts,$this->refObj,$fields); 
?>

	</td>
</tr>
</table>
<!--弹窗开始-->
<div id="myModal" class="reveal-modal">
<div class="center">
<p class="title">请选择需要导出的选项（多选）</p>
  <form action="/xrk_index.php?action=export" method="post">
      <input type="hidden" value='export' name="action" />
      <input type="hidden" value='' name="ids"  id="addId"/>
      <input type="hidden" value="姓名" name="title"  />
    	<input type="hidden" value="年龄" name="nianling"  />
    	<input type="hidden" value="区域（省市）" name="quyu"  />
    	<input type="hidden" value="申请时间" name="shenqingshijian"  />
    	<input type="hidden" value="状态" name="zhuangtai"  />
		   	<input type="hidden" value="资助类型" name="zizhuleixing"  />
        <input type="hidden" value="性别" name="xingbie"  />
		<input type="hidden" value="出生日期" name="chushengriqi"  />
        <input type="hidden" value="民族" name="minzu"  />
    	<input type="hidden" value="身份证号" name="huanerno"  />
        <input type="hidden" value="户口类型" name="hukou"  />
        <input type="hidden" value="户籍住址" name="hujizhuzhi"  />
   	<input type="hidden" value="家庭住址" name="jiatingzhuzhi"  />
	<input type="hidden" value="监护人姓名" name="jianhurenname"  />
    	<input type="hidden" value="关系" name="guanxi"  />
    	<input type="hidden" value="监护人联系方式1" name="jianhurenlianxi"  />
        <input type="hidden" value="监护人联系方式2" name="jianhurenlianxi2"  />
        <input type="hidden" value="监护人身份证号" name="jianhurenshno"  />
        <input type="hidden" value="紧急联系人1" name="jinjirenname1"  />
    	<input type="hidden" value="紧急人1-关系" name="jinjiren1guanxi"  />
    	<input type="hidden" value="紧急人1-联系方式" name="jinjiren1lianxi"  />
    	<input type="hidden" value="紧急联系人2" name="jinjiren2"  />
    	<input type="hidden" value="紧急人2-关系" name="jinji2guanxi"  />
    	<input type="hidden" value="紧急人2-联系方式" name="jinji2lianxi"  />
    	<input type="hidden" value="是否参加社会医疗保障" name="shebao"  />
        <input type="hidden" value="是否接受过其他社会援助" name="jieshoujiuzhu"  />
        <input type="hidden" value="受资助日期" name="shouzhuriqi"  />
        <input type="hidden" value="资助机构/个人名称" name="zizhujigou"  />
    	<input type="hidden" value="资助金额" name="zizhujine"  />
    	<input type="hidden" value="家庭年度总收入" name="jiazongshouru"  />
    	<input type="hidden" value="家庭人均年收入" name="jiarenjunshouru"  />
    	<input type="hidden" value="家庭人口" name="jiarenkou"  />
    	<input type="hidden" value="家庭劳动力人口" name="jialaodongli"  />
    	<input type="hidden" value="是否符合右表 所列情况 （可多选）" name="duoxuan"  />
    	<input type="hidden" value="贫困户档案编号" name="danganno"  />
    	<input type="hidden" value="低保证编号" name="dibaono"  />
    	<input type="hidden" value="军烈属证编号" name="junlieshuno"  />	
    	<input type="hidden" value="福利机构名称及联系方式" name="fulijigou"  />
    	<input type="hidden" value="患儿监护人求助申请" name="shenqingshuoming"  />
    	<input type="hidden" value="家庭所在地/村（居）委会" name="juweihui"  />
    	<input type="hidden" value="家庭所在地乡镇/街道办事处" name="xiangzhen"  />
    	<input type="hidden" value="确诊病症" name="quezheng"  />
        <input type="hidden" value="发病时间" name="fabingshijian"  />
        <input type="hidden" value="确诊时间" name="quezhengshijian"  />
        <input type="hidden" value="确诊医院" name="quezhengyiyuan"  />
    	<input type="hidden" value="曾治疗医院1" name="cengyiyuan1"  />
    	<input type="hidden" value="治疗日期1" name="zhiliao1"  />
    	<input type="hidden" value="曾治疗医院2" name="cengyiyuan2"  />
    	<input type="hidden" value="治疗日期2" name="zhiliao2"  />
   	<input type="hidden" value="曾治疗医院3" name="cengyiyuan3"  />
    	<input type="hidden" value="治疗日期3" name="cengriqi3"  />
   	<input type="hidden" value="康复训练类别" name="xunlianleibie"  />
<!--     	<input type="hidden" value="机构康复累计时间" name="jigoushijian"  />
 -->
  	<ul>
    	<li><input type="checkbox" value="title" name="option[]" id="option[]" />姓名</li>
        <li><input type="checkbox" value="nianling" name="option[]" id="option[]" />年龄</li>
        <li><input type="checkbox" value="quyu" name="option[]" id="option[]" />区域（省市）</li>
    	<li><input type="checkbox" value="shenqingshijian" name="option[]" id="option[]" />申请时间</li>
        <li><input type="checkbox" value="zhuangtai" name="option[]" id="option[]" />资助状态</li>
        <li><input type="checkbox" value="zizhuleixing" name="option[]" id="option[]" />资助类型</li>
        <li><input type="checkbox" value="xingbie" name="option[]" id="option[]" />性别</li> 	
		<li><input type="checkbox" value="chushengriqi" name="option[]" id="option[]" />出生年月</li>
        <li><input type="checkbox" value="minzu" name="option[]" id="option[]" />民族</li>
        <li><input type="checkbox" value="huanerno" name="option[]" id="option[]" />身份证号</li>
        <li><input type="checkbox" value="hukou" name="option[]" id="option[]" />户口类型</li>
        <li><input type="checkbox" value="hujizhuzhi" name="option[]" id="option[]" />户籍住址</li>
       <li><input type="checkbox" value="jiatingzhuzhi" name="option[]" id="option[]" />家庭住址</li>		
	   <li><input type="checkbox" value="jianhurenname" name="option[]" id="option[]" />监护人姓名</li>
        <li><input type="checkbox" value="guanxi" name="option[]" id="option[]" />关系</li>
        <li><input type="checkbox" value="jianhurenlianxi" name="option[]" id="option[]" />监护人联系方式1</li>
        <li><input type="checkbox" value="jianhurenlianxi2" name="option[]" id="option[]" />监护人联系方式2</li>
        <li><input type="checkbox" value="jianhurenshno" name="option[]" id="option[]" />监护人身份证号</li>
    	<li><input type="checkbox" value="jinjirenname1" name="option[]" id="option[]" />紧急联系人1</li>
        <li><input type="checkbox" value="jinjiren1guanxi" name="option[]" id="option[]" />紧急联系人1-关系</li>
        <li><input type="checkbox" value="jinjiren1lianxi" name="option[]" id="option[]" />紧急人1-联系方式</li>
    	<li><input type="checkbox" value="jinjiren2" name="option[]" id="option[]" />紧急联系人2</li>
        <li><input type="checkbox" value="jinji2guanxi" name="option[]" id="option[]" />紧急人2-关系</li>
        <li><input type="checkbox" value="jinji2lianxi" name="option[]" id="option[]" />紧急人2-联系方式</li>
    	<li><input type="checkbox" value="shebao" name="option[]" id="option[]" />是否参加社会医疗保障</li>
        <li><input type="checkbox" value="jieshoujiuzhu" name="option[]" id="option[]" />是否接受过其他社会援助</li>
        <li><input type="checkbox" value="shouzhuriqi" name="option[]" id="option[]" />受资助日期</li>
    	<li><input type="checkbox" value="zizhujigou" name="option[]" id="option[]" />资助机构/个人名称</li>
        <li><input type="checkbox" value="zizhujine" name="option[]" id="option[]" />资助金额</li>
        <li><input type="checkbox" value="jiazongshouru" name="option[]" id="option[]" />家庭年度总收入</li>
    	<li><input type="checkbox" value="jiarenjunshouru" name="option[]" id="option[]" />家庭人均年收入</li>
        <li><input type="checkbox" value="jiarenkou" name="option[]" id="option[]" />家庭人口</li>
        <li><input type="checkbox" value="jialaodongli" name="option[]" id="option[]" />家庭劳动力人口</li>
        <li><input type="checkbox" value="duoxuan" name="option[]" id="option[]" />是否符合右表 所列情况 （可多选）</li>
    	<li><input type="checkbox" value="danganno" name="option[]" id="option[]" />贫困户档案编号</li>
        <li><input type="checkbox" value="dibaono" name="option[]" id="option[]" />低保证编号</li>
        <li><input type="checkbox" value="junlieshuno" name="option[]" id="option[]" />军烈属证编号</li>	
        <li><input type="checkbox" value="fulijigou" name="option[]" id="option[]" />福利机构名称及联系方式</li>
    	<li><input type="checkbox" value="shenqingshuoming" name="option[]" id="option[]" />患儿监护人求助申请</li>
        <li><input type="checkbox" value="juweihui" name="option[]" id="option[]" />家庭所在地/村（居）委会</li>
        <li><input type="checkbox" value="xiangzhen" name="option[]" id="option[]" />家庭所在地乡镇/街道办事处</li>
    	<li><input type="checkbox" value="quezheng" name="option[]" id="option[]" />确诊病症</li>
        <li><input type="checkbox" value="fabingshijian" name="option[]" id="option[]" />发病时间</li>
        <li><input type="checkbox" value="quezhengshijian" name="option[]" id="option[]" />确诊时间</li>
    	<li><input type="checkbox" value="quezhengyiyuan" name="option[]" id="option[]" />确诊医院</li>
        <li><input type="checkbox" value="cengyiyuan1" name="option[]" id="option[]" />曾治疗医院1</li>
        <li><input type="checkbox" value="zhiliao1" name="option[]" id="option[]" />治疗日期1</li>
     	<li><input type="checkbox" value="cengyiyuan2" name="option[]" id="option[]" />曾治疗医院2</li>
        <li><input type="checkbox" value="zhiliao2" name="option[]" id="option[]" />治疗日期2</li>
       <li><input type="checkbox" value="cengyiyuan3" name="option[]" id="option[]" />曾治疗医院3</li>
    	<li><input type="checkbox" value="cengriqi3" name="option[]" id="option[]" />治疗日期3</li>
        <li><input type="checkbox" value="xunlianleibie" name="option[]" id="option[]" />康复训练类别</li>
<!--         <li><input type="checkbox" value="jigoushijian" name="option[]" id="option[]" />机构康复累计时间</li>
-->		
        <div style="clear:both;"></div>
    </ul>
        <p style="text-align:center; color:#666;"><b>备注：</b>不选择默认导出全部数据</p>
    <input class="dc-btn" data-reveal-id="myModal" data-animation="none" type="submit" value="导出" />
    <a href="" class="close close-reveal-modal"><img src="images/tc_01.jpg" width="15" height="15"></a>
</form>
</div>
</div>
<!--弹窗结束-->
<?php 
    			    //新增代码
    			    session_start();
    			    $uid = $_SESSION['dede_admin_id'];
			   ?>

<!--导入-->
<div id="myModal2" class="reveal-modal leading">
<p class="title">选择文档</p>
     <form name="upfile" id="upfile" class="drform" action="/xrk_index.php?action=eximp" method="post" enctype="multipart/form-data">
	 <input type="hidden" name="uid" value="<?php echo $uid?>" /> 
		          <input type="file" id="import" name="import" class="np file"/> 
		 		  <input type="submit" value="导入"  onchange="upfileSubmit()" onclick="return upfileSubmit()" class="drbtn"/> 
		       </form>
<a href="" class="close close-reveal-modal"><img src="images/tc_01.jpg" width="15" height="15"></a>
</div>
<!--导入-->
<script language="javascript" src="/js/export.js"></script>
</body>
</html>


<!-- DZuoSn  A变A+B -->
<!-- <script>
for (var i = $(".sn_ac").length - 1; i >= 0; i--) {
  $(".sn_ac").eq(i).html()
console.log($(".sn_ac").eq(i).html())
  if ($(".sn_ac").eq(i).html() == 'A'){
    $(".sn_ac").eq(i).html('A+B')
  }

}
</script> -->
<!-- DZuoSn  A变A+B  end -->